<#assign object = doc.objects>
package ${object.package}.gwt.client.model;

import com.smartgwt.client.data.DataSource;

public class DataSourceFactory extends redora.rdo.configuration.client.DataSourceFactory {

	public DataSource getDataSource(String dataSourceId){
<#list object["/objects/object/name"] as modelname>		
		if("${modelname}".equalsIgnoreCase(dataSourceId)){
			return ${modelname}DataSource.getInstance();
		}
</#list>
		return null;
	}

}
